package cz.mendelu.swi2.skladDilu;

import java.io.Serializable;
import cz.mendelu.swi2.skladDilu.interfaces.iPart;



/**
 * Trida predstavujici jeden dil slouzici pro sestaveni robota.
 * @author infsys
 * @version 1.0
 * @created 20-4-2012 12:47:54
 */
public class Part implements iPart,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2L;
	private int count;
	private String details;
	private long uid;
	private int inventoryState;
	private int inventorydiff;
	private String name;


    public Part(long uid,String name, int count, String description)
    {
    	this.uid=uid;
    	this.name=name;
    	this.count=count;
    	this.details=description;
    	this.inventoryState=count;
    	this.inventorydiff=0;
    }
    
    public  Part(){	}
	
	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getDetails() {
		return details;
	}

	public void setDetails(String details) {
		this.details = details;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long id) {
		this.uid = id;
	}

	public String getName() {
		return name;
	}

	
	public void setName(String name) {
		this.name = name;
	}


	public int getInventorydiff() {
		return inventorydiff;
	}

	public void setInventorydiff(int inventorydiff) {
		this.inventorydiff = inventorydiff;
	}

	public int getInventoryState() {
		return inventoryState;
	}

	public void setInventoryState(int inventoryState) {
		this.inventoryState = inventoryState;
	}
		
	/**
	 * 
	 * @param int
	 */
	public String getInfo(){
		return uid+" "+name+" "+count+" "+details;
	}

	@Override
	public int getCurrentCount() {
		return count;
	}


	

	

}